<?php

if(!$_cid && $_POST[_cid])
	$_cid = $_POST[_cid];
if(!$_status && $_POST[_status])
	$_status = $_POST[_status];

if($_cid && $_status)
{
	$_cid = "".$_cid;
	$_status = "".$_status;

	$mysqliu = mysqli_connect("localhost", "canss", "1022", "contentsmetadata_db") or die("ERROR: Could not connect ".mysql_error());
	mysqli_query($mysqliu, "SET NAMES 'utf8'");
	
	$queryu = "UPDATE `tblContentDescription` SET cansscontentdescription_status='".$_status."' WHERE tblCID_cid='".$_cid."';";
	
	if (mysqli_query( $mysqliu, $queryu )!= 1)
		echo "ERROR : Fail to update element into MDB ".$queryu;
	else
		;//echo "TRUE";
}
?>
